<?php
// define array
$profile = array(
  "room_num" => "101room",
  "hostel_num" => "11room",
  "roll_num" => "23room",
  "fname" => "Susan",
  "lname" => "Doe",
  "gender" => "female",
  "sector" => "Asset Management"
);
ksort($profile);
print_r($profile);
